package mobi.richaze.llbag.domain.model.product;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * 产品的类别目录表
 * 
 * @author Richaze Chou
 * 
 */
@SuppressWarnings("serial")
public class Category implements Serializable {

	private String categoryId;
	private String name;
	private String description;
	private List<Product> products = new ArrayList<Product>();

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId.trim();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String toString() {
		return getCategoryId();
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

}
